<extend name="Base/common"/>




<block name="body">

    <div class="index-content1">
        <div class="breadcrumb" style="color: #999999"><span style="color: #E62D2D">(修改)</span>&nbsp;请注意红色星号部分为必填信息，否则将无法发布</div>
        <form class="form-horizontal ajax-form" role="form" method="post" action="{:U('Usercenter/House/save_edit_qiuzu')}">
            <input type="hidden" name="id" value="{$result['id']}">


            <div class="form-group">
                <label for="position" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    期望地区：</label>

                <div class="col-lg-2">
                    <div class="input-group">
                        <input type="text" name="position" id="position" class="form-control" value="{$result.position}">

                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">区域
                                <span class="caret"></span></button>
                            <ul class="dropdown-menu pull-right">
                                <li><a href="#" onclick="set_position('江干区');">江干区</a></li>
                                <li><a href="#" onclick="set_position('西湖区');">西湖区</a></li>
                                <li><a href="#" onclick="set_position('滨江区');">滨江区</a></li>
                                <li><a href="#" onclick="set_position('拱墅区');">拱墅区</a></li>
                                <li><a href="#" onclick="set_position('上城区');">上城区</a></li>
                                <li><a href="#" onclick="set_position('下城区');">下城区</a></li>
                                <li><a href="#" onclick="set_position('余杭区');">余杭区</a></li>
                                <li><a href="#" onclick="set_position('富阳区');">富阳区</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>


            <div class="form-group">
                <label for="village" class="col-sm-2 control-label">

                    期望小区：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="village" id="village" value="{$result.village}">
                </div>
            </div>
            <div class="form-group">
                <label for="type" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    期望户型：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="type" id="type" value="{$result.type}">
                </div>
            </div>



            <div class="form-group">
                <label for="price" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    期望租金：</label>

                <div class="col-sm-2 pull-left">
                    <input type="text" class="form-control " name="price_min" id="price1" value="{$result.price_min}"{:only(2)}>
                </div>
                <span class="pull-left"style="margin-top: 6px;color: #999999">—</span>
                <div class="col-sm-2 pull-left">
                    <input type="text" class="form-control " name="price_max" id="price2" value="{$result.price_max}"{:only(2)}>
                </div>
                <span class="pull-left" style="line-height: 36px;">元/月</span>
            </div>







            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    标题：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="title" id="title" value="{$result.title}">
                </div>
            </div>

            <div class="form-group">
                <label for="description" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    描述：</label>

                <div class="col-sm-6">
                    <textarea class="form-control" rows="5" id="description" name="description">{$result.description}</textarea>

                </div>
            </div>



            <div class="form-group">
                <label for="nickname" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    联系人：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" name="nickname" id="nickname" value="{$result.nickname}">
                </div>
                <span style="line-height: 33px;color: #E62D2D;font-size: 14px;">请务必填写真实姓名，方便与您联系</span>
            </div>

            <div class="form-group">
                <label for="phone" class="col-sm-2 control-label">
                    <snap style="color: #ff0000">*</snap>
                    联系电话：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" id="phone" name="phone" value="{$result.phone}" {:only(1)}>
                </div>
                <span style="line-height: 33px;color:#E62D2D;font-size: 14px;">请核对号码，方便与您联系</span>
            </div>


            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary" style="height: 40px;font-size:18px;">确认修改
                    </button>
                </div>
            </div>
        </form>


    </div>

    <script>
        function set_position(content) {
            $('#position').val(content);
        }
    </script>

</block>
